import request from '@/utils/request'

// 查询四害消杀导入列表
export function listExterminationImportBase(query) {
  return request({
    url: '/standingbook/exterminationImportBase/list',
    method: 'get',
    params: query
  })
}

// 查询四害消杀导入详细
export function getExterminationImportBase(batchNo) {
  return request({
    url: '/standingbook/exterminationImportBase/' + batchNo,
    method: 'get'
  })
}

// 新增四害消杀导入
export function addExterminationImportBase(data) {
  return request({
    url: '/standingbook/exterminationImportBase',
    method: 'post',
    data: data
  })
}

// 修改四害消杀导入
export function updateExterminationImportBase(data) {
  return request({
    url: '/standingbook/exterminationImportBase',
    method: 'put',
    data: data
  })
}

// 删除四害消杀导入
export function delExterminationImportBase(batchNo) {
  return request({
    url: '/standingbook/exterminationImportBase/' + batchNo,
    method: 'delete'
  })
}

export function importData(data) {
  return request({
    url: '/standingbook/exterminationImportBase/importData',
    method: 'post',
    data: data
  })
}
